package com.s10.ecloud.web.model;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "PROVINCE", catalog = "ECLOUD")
public class Province implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer number = 0;
	private Integer weight = 0;
	private String name;
	private String desc;

	// Constructors

	/** default constructor */
	public Province() {
	}

	/** full constructor */
	public Province(Integer eId, String name, String desc) {
		this.id = eId;
		this.desc = desc;
		this.name = name;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "NUMBER", length = 50)
	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer e) {
		this.number = e;
	}

	@Column(name = "NAME", length = 40)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DESCRIPTION", length = 40)
	public String getData() {
		return this.desc;
	}

	public void setData(String data) {
		this.desc = data;
	}

	@Column(name = "WEIGHT", length = 50)
	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}
}